package com.douglas.managesystem.service.student;

import com.douglas.managesystem.common.SearchEntity;
import com.douglas.managesystem.entity.studentpojo.Teacher;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Description 教师业务接口
 * @Author 以梦为馬 <Douglas1314@126.com>
 * @Version V1.0.0
 * @Date 2020-11-17 12:44
 **/
public interface TeacherService {


    /**
     * 1.分页查询所有教师信息
     * @param params
     * @return
     */
    PageInfo<Teacher> findAllTeacherByPage(SearchEntity params);

    /**
     * 2.根据id查询教师信息
     * @param id
     * @return
     */
    Teacher findTeacherById(String id);

    /**
     * 3.新增教师信息
     * @param teacher
     */
    void addTeacher(Teacher teacher);

    /**
     * 4.编辑教师信息
     * @param teacher
     */
    void editTeacher(Teacher teacher);

    /**
     * 5.根据id删除教师信息
     * @param id
     */
    void deleteTeacherById(String id);

    /**
     * 6.根据teacherId查询教师对象
     * @param teacherId
     * @return
     */
    Teacher queryTeacherByTeacherId(String teacherId);

    /**
     * 7.老师id集合
     * @return
     */
    List<String> queryAllTeacherList();

}
